import React, { lazy, Suspense } from 'react'
import { BrowserRouter, Route, Routes, } from "react-router-dom"
import "./App.scss"
export default function App() {
  const Admin = lazy(() => import("./views/admin/admin"));
  const Login = lazy(() => import("./views/Login/Login"));
  return (
    <div className='App'>
      <BrowserRouter>
        <Suspense>
          <Routes>
          <Route path='/' element={ <Admin/> }></Route>
          <Route path='/login' element={ <Login/> }></Route>
          </Routes>
        </Suspense>

      </BrowserRouter>

      {/* <Login></Login> */}
    </div>
  )
}
